GIT 远程仓库
1. 远程仓库
- 查看远程库名字
git remote
- 查看远程连接
git remote -v
- 添加远程仓库
[book@SERVER realsync]$ git remote add http https://github.com/jikchenggit/realsync.git
- 拉取仓库分支
[book@SERVER realsync]$ git fetch http
说明:不会合并分支
- 推送到远程仓库
git push origin master
- 拉取分支与本地分支合并
git pull
- 显示远程仓库信息
git remote show http
- 远程仓库重命名
git remote rename http pb
- 删除远程仓库
git remote rm pb